package com.lixinyue.exer;

public class CustomerTest {
    public static void main(String[] args) {
        Customer customer = new Customer("jane", "smith");
        Account account = new Account(1000, 2000, 0.0123);
        customer.setAccount(account);
        customer.getAccount().deposit(100);
        customer.getAccount().withdraw(960);
        customer.getAccount().withdraw(2000);
        System.out.println("Customer"+"["+customer.getLastName()+","+ customer.getFirstName()
        +"]"+"has a account:id is "+customer.getAccount().getId()+","+"annualIntestRate is"+
                customer.getAccount().getAnnualintesestRate()*100+"%，balance is"+customer.getAccount().getBalance());
    }
}
